{
GtkCssSection *section;
- section = _gtk_css_section_new (scanner->section,
- section_type,
- scanner->parser);
+ section = gtk_css_section_new_for_parser (scanner->section,
+ section_type,
+ scanner->parser);
if (scanner->section)
gtk_css_section_unref (scanner->section);
G_DEFINE_BOXED_TYPE (GtkCssSection, gtk_css_section, gtk_css_section_ref, gtk_css_section_unref)
GtkCssSection *
-_gtk_css_section_new (GtkCssSection *parent,
- GtkCssSectionType type,
- GtkCssParser *parser)
+gtk_css_section_new_for_parser (GtkCssSection *parent,
+ GtkCssSectionType type,
+ GtkCssParser *parser)
{
GtkCssSection *section;
return section;
}
-GtkCssSection *
-_gtk_css_section_new_for_file (GtkCssSectionType type,
- GFile *file)
-{
- GtkCssSection *section;
-
- gtk_internal_return_val_if_fail (G_IS_FILE (file), NULL);
-
- section = g_slice_new0 (GtkCssSection);
-
- section->ref_count = 1;
- section->section_type = type;
- section->file = g_object_ref (file);
-
- return section;
-}
-
void
_gtk_css_section_end (GtkCssSection *section)
{
G_BEGIN_DECLS
-GtkCssSection * _gtk_css_section_new (GtkCssSection *parent,
+GtkCssSection * gtk_css_section_new_for_parser (GtkCssSection *parent,
GtkCssSectionType type,
GtkCssParser *parser);
-GtkCssSection * _gtk_css_section_new_for_file (GtkCssSectionType type,
- GFile *file);
void _gtk_css_section_end (GtkCssSection *section);